﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core.Library
{
    public class Thumbnail
    {
        private const string Domain = "http://quizk14.vcmedia.vn/";

        public static string Thumb(int width, int height, string imgPath)
        {            
            return string.Format("{0}thumb/{1}_{2}/{3}", Domain, width, height, imgPath);
        }

        public static string ThumbIn(int width, int height, string imgPath)
        {
            return string.Format("{0}thumb_in/{1}_{2}/{3}", Domain, width, height, imgPath);
        }

        public static string ThumbW(int width, string imgPath)
        {
            return string.Format("{0}thumb_w/{1}/{2}", Domain, width, imgPath);            
        }

        public static string ThumbWl(int width, string imgPath)
        {
            return string.Format("{0}thumb_wl/{1}_{2}/", Domain, width, imgPath);            
        }

        public static string ThumbR(int width, float ratio, string imgPath)
        {
            return string.Format("{0}thumb_r/{1}_{2}/{3}", Domain, width, ratio, imgPath);            
        }

        public static string Crop(int width, int height, string imgPath)
        {
            return string.Format("{0}crop/{1}_{2}/{3}", Domain, width, height, imgPath);            
        }

        public static string Zoom(int width, int height, string imgPath)
        {
            return string.Format("{0}zoom/{1}_{2}/{3}", Domain, width, height, imgPath);                        
        }

        public static string Original(string imgPath)
        {
            return string.Format("{0}{1}", Domain, imgPath);                        
        }
    }
}
